package com.lizhi.yun.db.rsz.dao;

import com.lizhi.mybatis.interceptor.PageBounds;
import com.lizhi.yun.db.rsz.entity.RszTrajectorySelfEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface RszTrajectorySelfDao{

	public int insertRecord(RszTrajectorySelfEntity record);//添加一条完整记录

	public int deleteById(@Param("selfId") String selfId,@Param("hospitalId") String hospitalId,@Param("hospitalSystemId")  String hospitalSystemId);//通过Id(主键)删除一条记录

	public int updateByIdSelective(RszTrajectorySelfEntity record);//按Id(主键)修改指定列的值

	public RszTrajectorySelfEntity selectById(@Param("selfId") String selfId,@Param("hospitalId") String hospitalId,@Param("hospitalSystemId")  String hospitalSystemId);//通过Id(主键)查询一条记录

	public List<RszTrajectorySelfEntity> selectByMap(Map<String, Object> paramMap, PageBounds pageBounds);//根据条件查询

	public Integer selectCount(Map<String, Object> paramMap);

	public List<RszTrajectorySelfEntity> selectByPtId(@Param("ptId") String ptId);//根据条件查询

	public Integer selectMaxNum();
}